package com.nomi.blog.exception;

/**
 * 业务异常(自定义错误码和消息)
 */
public class BussinessException extends RuntimeException{
    private static final long serialVersionUID = 1L;

    private int code;

    public BussinessException(int code,String message){
        super(message);
        this.code = code;
    }

    public int getCode(){
        return code;
    }
}
